package com.wm.service;

import com.wm.bean.Shopkeeper;
import com.wm.bean.User;
import com.wm.service.web.PageList;
import com.wm.service.web.Pages;

/**
 * @author yangbo
 *
 * 2013-1-4
 */
public interface ShopkeeperService {
	/**
	 * 保存
	 * @param sk
	 * @return
	 */
	public Shopkeeper saveShopkeeper(Shopkeeper sk);
	
	/**
	 * 修改
	 * @param sk
	 * @return
	 */
	public Shopkeeper updateShopkeeper(Shopkeeper sk);
	
	/**
	 * 根据ID删除Shopkeeper对象
	 * 
	 * @param id
	 * 			long
	 */
	public void removeShopkeeperById(long id);
	
	/**
	 * 根据ID查询
	 * @param id
	 * @return
	 */
	public Shopkeeper findShopkeeperById(long id);
	
	/**
	 * 根据用户名查询
	 * @param userName
	 * @return
	 */
	public Shopkeeper findShopkeeperByUserName(String userName);
	
	public PageList findShopkeepersByUserNameStatus(String userName,int status,String orderby,int ascOrDesc,Pages pages);
}
